import request from '/@/utils/request'

const Employees = {
  // 同步企业
  getCorporationsApi({ params }: any) {
    return request({
      url: '/api/employees/corporations',
      method: 'get',
      params,
    })
  },
  // 同步部门
  getDepartmentsApi({ params }: any) {
    return request({
      url: '/api/employees/departments',
      method: 'get',
      params,
    })
  },
  // 同步红有平台用户数据
  postSynchronizationApi({ data }: any) {
    return request({
      url: '/api/employees/synchronization',
      method: 'post',
      data,
    })
  },
  //企业模糊搜索
  searchCorporationsApi({ params }: any) {
    return request({
      url: '/api/employees/corporations/search',
      method: 'get',
      params,
    })
  },
  //部门模糊搜索
  searchDepartmentsApi({ params }: any) {
    return request({
      url: '/api/employees/departments/search',
      method: 'get',
      params,
    })
  },
  //部门模糊搜索
  searchEmployeesApi({ params }: any) {
    return request({
      url: '/api/employees/search',
      method: 'get',
      params,
    })
  },
  //部门模糊搜索2
  searchEmployeesApi2({ params }: any) {
    return request({
      url: '/api/user',
      method: 'get',
      params,
    })
  },
}

export default Employees
